﻿namespace Microsoft.Web.Helpers
{
    using System;
    using System.Globalization;
    using System.Net;
    using System.Security.Cryptography;
    using System.Text;
    using Microsoft.WindowsAzure;

    public class SharedKeyLiteAuthenticationScheme : IAuthenticationScheme
    {        
        private StorageCredentialsAccountAndKey credentials;

        public SharedKeyLiteAuthenticationScheme(string accountName, string accountKey)
        {
            this.credentials = new StorageCredentialsAccountAndKey(accountName, accountKey);
        }

        public void SignRequest(WebRequest request)
        {
            this.credentials.SignRequestLite(request as HttpWebRequest);
        }
    }
}
